import os
import os.path

class MyOS:
    def __init__(self):
        pass

    def remove(self, target):
        if os.path.isfile(target):
            print('Remove file: %s' % target)
            os.remove(target)
        else:
            print('rm: file not exists')


def rm(filename):
    theos = MyOS()
    return theos.remove(filename)

